home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / custEducation / opengl2 / demos / README < prev    next >
Encoding:
Text File  |  1996-11-11  |  4.8 KB  |  153 lines

  1.  
  2.         to compile programs in the above-indicated sub- directories/trees, 
  3.        one must load libglut. inst-able images of GLUT v3.1 are located at 
  4.                 toolbox/src/exampleCode/opengl/GLUT/inst/ 
  5.  
  6.                   -------------------------------------
  7.  
  8.     ~opengl2/demos README
  9.  
  10.             Copyright 1991-96, Silicon Graphics, Inc.
  11.             Technical Education Development
  12.             All Rights Reserved.
  13.  
  14.  
  15.     Addtional demonstration programs for the OpenGL Programming 2 class.
  16.    
  17.  
  18.     blendCollage.c:
  19.     Demonstrates how to use the GL_EXT_blend_color extensions
  20.     to blend images that do not have an alpha channel.
  21.  
  22.     This program displays images at random positions in a window,
  23.     and uses a constant blending function to blend the images.
  24.     The blending factor can be changed interactively.
  25.     An option allows the images to be zoomed by a randow zoom 
  26.     factor. Up to MAX_IMAGES can be read.  To run, type:
  27.  
  28.     blendCollage <imageFile1.rgb> [<imageFile2.rgb>] ...
  29.  
  30.     Try "blendCollage /usr/demos/data/textures/*.rgb"
  31.  
  32.     LEFT Mousebutton, down  - randomly choose a new image 
  33.     Up Arrow        - increase blend factor
  34.     Down Arrow        - decrease blend factor
  35.     <c> key            - clear window to background color
  36.     SPACEBAR        - toggle fixed/random zoom
  37.     Escape key        - exit the program
  38.  
  39.  
  40.     earth.c
  41.     Demonstrates the various texture environment modes with an RGB
  42.     image.  It maps a texture onto a quadric sphere.  By default,
  43.     it creates a texture from the earth.rgb image. A different image
  44.     can be specified on the command line.
  45.  
  46.     The environment modes can be changed interactively.
  47.  
  48.     <e> Key        - cycle through environment modes
  49.     <s> Key        - toggle earth rotation on/off
  50.     <t> Key        - toggle texturing on/off
  51.     Escape Key    - exit program
  52.  
  53.  
  54.     oglextensions.c
  55.     Prints the GL, GLU and GLX extensions supported by the server.
  56.     The -display option can be used to specify the server.  If it
  57.     is not specified on the command line, the local display is used.
  58.  
  59.  
  60.     oversphere.c
  61.     Demonstrates how to use the overlay plane with GLUT.  Press and 
  62.     drag the mouse buttons to choose the position of a sphere
  63.     before rendering it.
  64.  
  65.     Left Mouse Button    - position red spheres
  66.     Middle Mouse Button    - position green spheres
  67.     Right Mouse Button    - position blue spheres
  68.     Escape key        - exit program
  69.  
  70.  
  71.     panZoom.c:
  72.     pans around on a subimage when the Left Mousebutton is dragged.
  73.     Zooming can be controlled interactively.
  74.  
  75.     Left Mousebutton, down          - pan subimage
  76.         <z> key                - zoom in on subimage
  77.         <Z> key                - zoom out on subimage
  78.     Escape key                      - exit the program
  79.  
  80.  
  81.     pixmap.c: demonstrates rendering to a pixmap.
  82.  
  83.     NOTE: This program does not run on RealityEngine systems in 5.3.
  84.  
  85.         p key            - render to pixmap
  86.         w key            - render to window
  87.         c key            - copy pixmap to window
  88.     Escape Key        - exit program
  89.  
  90.  
  91.     glwstereo.c     
  92.     A motif program which uses the GLw widget.  Uses quad-buffer
  93.     stereo if a suitable visual can be found, otherwise tries to
  94.     use the SGIFullScreenStereo extension.
  95.  
  96.     Right Mousebutton, down - popup menu
  97.  
  98.  
  99.     subtexture.c:  reads in an rgb image and uses it to texture a
  100.     polygon in the left half of the window.  It then uses the
  101.     GL_EXT_subtexture extensions to replace the middle of the 
  102.     image texture with an artificually created striped texture.
  103.     The new texture is mapped to a polygon in the right half of
  104.     the window.
  105.  
  106.     Escape key              - exit the program
  107.  
  108.  
  109.     surfgrid.c
  110.     Demonstrates polygon offset and multisampling extensions.
  111.     Renders a torus with a grid outlining it.
  112.  
  113.     Control keys:
  114.     p       toggle polygon offset
  115.     m       toggle multisampling
  116.     S       increase polygon offset factor
  117.     s       decrease polygon offset factor
  118.     B       increase polygon offset bias
  119.     b       decrease polygon offset bias
  120.     g       toggle grid drawing
  121.     f       toggle smooth/flat shading
  122.     n       toggle whether to use GL evaluators or GLU nurbs
  123.     u       decr number of segments in U direction
  124.     U       incr number of segments in U direction
  125.     v       decr number of segments in V direction
  126.     V       incr number of segments in V direction
  127.  
  128.     Escape key              - exit the program
  129.  
  130.  
  131.     multiwin.c:  Create multiple windows display different views of 
  132.     the same scene. 
  133.         
  134.         Left Mousebutton     - move eyepoint in polarview window
  135.         Middle Mousebutton    - change twist angle in polarview window
  136.         Right Mousebutton    - zoom in/out in all windows
  137.         <f> key            - toggle filled/wireframe cylinder
  138.         <R> key            - reset viewpoint
  139.         Escape key        - exit the program
  140.  
  141.  
  142.     lens - Roam around a very large image using textures tiles.
  143.  
  144.     Demonstrates the use of subtexture and texture color table extensions.
  145.  
  146.     Up/Down arrow         - zoom in/out
  147.     <l> key            - cycle through texture lookup tables
  148.     <w> key         - cycle through warping effects
  149.     Left mouse         - drag image
  150.     Middle/Right mouse     - rotate image CCW/CW
  151.     <h/?> key        - help
  152.     Esc             - quit
  153.